package com.springcloud.service;

import com.api.fallback.HelloFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "springcloud-server",path = "/hello",fallback = HelloFallback.class)
public interface HelloRemote {

    @GetMapping("/{name}")
    String hello(@RequestParam(value = "name") String name);

}
